package com.kkb.service.impl;

import com.kkb.service.AccountService;
import org.springframework.stereotype.Service;

@Service
public class AccountServiceImpl implements AccountService {
    @Override
    public void addAccount() {
        System.out.println("执行新增账户方法");
        // 模拟异常
        int i = 1/0;
    }

    @Override
    public void deleteAccount(Integer id) {
        System.out.println("执行删除账户方法，参数为" + id);
    }

    @Override
    public void updateAccount(Integer id) {
        System.out.println("执行修改账户方法，参数为" + id);
    }

    @Override
    public String findAccount() {
        System.out.println("执行查询账户方法");
        return "张三";
    }
}
